<?php $navigation = Zend_Registry::get('Zend_Navigation'); ?>
<?php $controllerName = $this->getControllerName(); ?>
<div id="nav">
	<!-- skiplink anchor: navigation -->
	<a id="navigation" name="navigation"></a>
	<div class="hlist">
		<!-- main navigation: horizontal list -->
		<ul>
	        <?php foreach ($navigation as $nav): ?>
	            <?php if (($controllerName == 'tools') && ($nav->controller == 'tools')) $nav->setActive(); ?>
                <?php if ($nav->isActive()):?>
				<li class="active"><span>&nbsp;<?php echo $nav->label; ?>&nbsp;</span></li>
	            <?php else:?>
				<li>
					<a href="<?php echo $nav->href; ?>" title="<?php 
                        echo $nav->title; ?>" target="<?php echo $nav->target; ?>">&nbsp;<?php 
                        echo $nav->label; ?>&nbsp;</a>
				</li>
	            <?php endif; ?>	
	        <?php endforeach; ?>
		</ul>	
	</div>
	<!--    <img class="loading" src="<?php //echo $this->themeUrl(); ?>/images/ajax-loader.gif" alt="Загрузка..." />-->
</div>